<?php
    class Page extends CI_Model
    {
        public function get_current_page($page_number, $id_client) {
           $query=$this->db->query('SELECT * FROM page WHERE  page_number="'.$page_number.'" AND id_client='.$id_client.'');
		   return $query->result_array();
        }
        public function get_current_pageById($id_page) {
           $query=$this->db->query('SELECT * FROM page WHERE  id="'.$id_page.'"');
		   return $query->result_array();
        }
        public function getContentByIdPage($id_page) {
           $query=$this->db->query('SELECT * FROM content WHERE  id_page="'.$id_page.'"');
		   return $query->result_array();
        }
        public function getContentFileByIdContent($id_content) {
           $query=$this->db->query('SELECT * FROM file WHERE  id_content="'.$id_content.'"');
		   return $query->result_array();
        }
    }
?>